package com.zhaoyh.mapper;

import com.zhaoyh.bean.Userincome;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserincomeMapper {
    String TABLE_NAME = "userincome";

    @Select({"SELECT COUNT(*) FROM", TABLE_NAME})
    int count();

    List<Userincome> selectByLimitAndOffset(@Param("offset") Integer offset,
                                              @Param("limit") Integer limit);
    List<Userincome> selecttByAccount(@Param("offset")Integer offset, @Param("limit")Integer limit, @Param("uuid")String uuid);

    int countByUuid(@Param("uuid")String uuid);
}